package com.yuyue.springFramework.note04.annotation;

import java.util.Map;

@Annotation6("用在了类上")
@Annotation6_0(0)
public class TargetObject<
        @Annotation6("用在了类变量类型A1上")
        @Annotation6_0(1)
        A1,
        @Annotation6("用在了类变量类型A2上")
        @Annotation6_0(2)
        A2> {

    @Annotation6("用在了字段上")
    @Annotation6_0(3)
    private String name;

    private Map<
            @Annotation6("用在了泛型类型上,String")
            @Annotation6_0(4)
                    String,
            @Annotation6("用在了泛型类型上，Integer")
            @Annotation6_0(5)
                    Integer>
            map;

    @Annotation6("用在了构造函数上")
    @Annotation6_0(6)
    public TargetObject(){};

    @Annotation6("用在了返回值上")
    @Annotation6_0(7)
    public String fun(@Annotation6("用在了参数上")
                      @Annotation6_0(8)
                      String name){
        return null;
    }

}
